
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QResource>
#include <QMainWindow>
#include "mainscene.h"


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow

{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void timerEvent(QTimerEvent *event);
    int myTimerId;
    MainScene ma;


private slots:
    void on_endButton_clicked();

    void on_startButton_clicked();

    void on_youxiButton_clicked(    )
    {

        MainScene *w=new MainScene;
        w->show();
        this->close();
    }

   // void newAction();



private:
    Ui::MainWindow *ui;
    int picID;
};

#endif // MAINWINDOW_H
